Cortex > Metrics
Administration
Cortex > System Health
Cortex > Session Management
Cortex > Index Management
Cortex > Document Operations
Cortex > Search Operations
Cortex > A/B Testing
Cortex > Analytics
Cortex > Feedback
Nous > Health
Nous > A/B Testing
Nous > Adaptation
Nous > Learning > Models
Nous > Learning > Search Patterns
Nous > Learning > Feedback
Nous > Learning > Metrics and Events
Nous > Signals
Cortex > A/B Testing
Create A/B Test
POST
/
cortex
/
ab-test
/
create
Copy
curl --request POST \
--url https://api.sophra.org/api/cortex/ab-test/create \
--header 'Content-Type: application/json' \
--data '"{\n \"name\": \"{{variate_test_name}}\",\n \"description\": \"{{variate_test_description}}\",\n \"variants\": [\n {\n \"id\": \"{{variate_test_id}}\",\n \"name\": \"Control Group\",\n \"allocation\": {{variate_test_allocation}},\n \"weights\": {\n \"title\": {{variate_test_weights_title}},\n \"content\": {{variate_test_weights_content}}\n }\n },\n {\n \"id\": \"variant_a\",\n \"name\": \"{{variate_a}}\",\n \"allocation\": {{variate_test_allocation}},\n \"weights\": {\n \"title\": {{variate_test_weights_title}},\n \"content\": {{variate_test_weights_content}}\n }\n }\n ]\n}"'
Copy
"<any>"
Body
application/json · object
Response
200 - application/json
Successful response
The response is of type any
.
Copy
curl --request POST \
--url https://api.sophra.org/api/cortex/ab-test/create \
--header 'Content-Type: application/json' \
--data '"{\n \"name\": \"{{variate_test_name}}\",\n \"description\": \"{{variate_test_description}}\",\n \"variants\": [\n {\n \"id\": \"{{variate_test_id}}\",\n \"name\": \"Control Group\",\n \"allocation\": {{variate_test_allocation}},\n \"weights\": {\n \"title\": {{variate_test_weights_title}},\n \"content\": {{variate_test_weights_content}}\n }\n },\n {\n \"id\": \"variant_a\",\n \"name\": \"{{variate_a}}\",\n \"allocation\": {{variate_test_allocation}},\n \"weights\": {\n \"title\": {{variate_test_weights_title}},\n \"content\": {{variate_test_weights_content}}\n }\n }\n ]\n}"'
Copy
"<any>"
Assistant
Responses are generated using AI and may contain mistakes.